package eg.backend.repository;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import eg.backend.base.repository.EntityRepository;
import eg.backend.domain.User;

@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public interface UserRepository extends EntityRepository<User, String> {
	List<User> findByName(String name);
	
	User findByEmail(String email);
}